{# Layout pour EZ-Draw - 13/03/2014 #}

{#
    Étend le layout par défaut 
#}

{%- extends "!layout.html" %}


{# 
 #  Rajoute des fichiers de style
#}

{% set css_files = css_files + ["../../share/ez-style-1.2.css"] %}


{#
 #  Rajoute des fichiers de script - désactivé
#}

{# set script_files = script_files + ["../../share/ez-scripts-1.2.js"] #}


{#
 # Modifie la relbar
 # Copié de sphinx/themes/basic/layout.html
#}

{%- macro myrelbar() %}
    <div class="related">
      <h3>{{ _('Navigation') }}</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="{{ "../../en/html/"+pagename+".html" }}">English</a></li>
        <li class="right">
          <span class="current">Français</span> |</li>
        {%- block rootrellink %}
        <li><a href="../../../index.html">EZ-Draw 1.2</a> &raquo;</li>
        <li><a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a>{{ reldelim1 }}</li>
        {%- endblock %}
        {%- for parent in parents %}
          <li><a href="{{ parent.link|e }}" {% if loop.last %}{{ accesskey("U") }}{% endif %}>{{ parent.title }}</a>{{ reldelim1 }}</li>
        {%- endfor %}
        {%- block relbaritems %} {% endblock %}
      </ul>
    </div>
{%- endmacro %}

{%- block relbar1 %}{{ myrelbar() }}{% endblock %}
{%- block relbar2 %}{{ myrelbar() }}{% endblock %}


{#
 #  Rajoute #endpage
 #  Copié de sphinx/themes/basic/layout.html
 #}

{%- block footer %}
    <div class="footer">
    {%- if show_copyright %}
      {%- if hasdoc('copyright') %}
        {% trans path=pathto('copyright'), copyright=copyright|e %}&copy; <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
      {%- else %}
        {% trans copyright=copyright|e %}&copy; Copyright {{ copyright }}.{% endtrans %}
      {%- endif %}
    {%- endif %}
    {%- if last_updated %}
      {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
    {%- endif %}
    {%- if show_sphinx %}
      {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
    {%- endif %}
    </div>
    <a name="endpage"></a>
{%- endblock %}

